﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WPFContribDataAccess
{
    public interface ISimpleDataAccess
    {
        SQLParms SQLParms { get; set; }

        void SetConnection();

        void CloseConnection();

        void ExecuteQuery(string txtQuery);

        void LoadData(string tableName, string offset, string increment, Action<DataRow> loadFrameworkElement);

        void LoadSubsetOfNames(string columnName, string tableName, string commaDelimitedList, Action<DataRow> loadList);

        long Count(string tableName);
    }
}
